// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults



function mark_for_destroy(element, div) {
    $(element).next('.should_destroy').value = 1;
    $(element).up(div).hide();
}

function reindex() {
    def_parts = document.getElementById("definition_parts");
    prefix = "item_";
    astr = "";
    
    for (var i = 0; i < def_parts.childNodes.length; i++) {
      astr += def_parts.childNodes[i].id
    }
    
    return astr; 
}


